<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<%
	xMode = Request("xMode")
	showSubMenu = "60"
	
	isPerm = ""
	If Request.Cookies("S_level") = "05" then 
		isPerm = "none"
	End if
%>
<!-- #include virtual=/inc/header.inc.asp --->  

<BODY topmargin="0" leftmargin="0">
<!-- #include virtual=/inc/menu.inc.asp -->  

<!-- 검색 영역 시작 -->
<div style="text-align:left;margin-top:10px;">
<!-- #include virtual=/inc/subMenu.inc.asp --> 
<table border="0" cellpadding="0" cellspacing="0" width="1237" style="margin-left:5px;">
	<tr height="40">
		<td style="padding: 0px 0 0px 10px;background-image:url(/inc/layout/panel-title-light-bg.gif);font-weight:bold;text-align:left" width="100%" class="lTD_trbl"> &nbsp; 
			발주오더No <input type="text" id="findOrderNo" class="inputBox" style="width:100px;"> &nbsp; 
			거래처 <input type="text" id="findCompany" class="inputBox" style="width:100px;"> &nbsp; 
			자재코드 <input type="text" id="findPrdCd" class="inputBox" style="width:100px;"> &nbsp; 
			품목명 <input type="text" id="findPrdNm" class="inputBox" style="width:100px;"> &nbsp;
			<input type="button" onClick="grid01List()" value="검 색" class="inputBtn">&nbsp;
			<input type="button" onClick="fnSearchReset()" value="Reset" class="inputBtn">
		</td>
	</tr>
</table>
</div>
<!-- 검색 영역 끝 -->


<br>

<!-- 그리드 시작 -->
<div style="text-align:left">
<table border="0" cellpadding="0" cellspacing="0" width="1235" style="margin-left:5px;text-align:left">
	<tr>
		<td width="100%" class="lTD_trbl" valign="top" style="padding: 5px 5px 5px 5px;">
			<table border="0" cellpadding="0" cellspacing="0" width="600">
				<tr height="24">
					<td style="padding: 0 0 0 0;text-align:left" width="300"><div><input type="text" class="subTitle" style="width:80px;" value="견적관리" ReadOnly>&nbsp;<a href="javascript:grid01List()">[새로고침]</a> &nbsp;</div> </td>
					<td style="padding: 0 20 0 0;" align="right" width="300"><B>Total :</B> <span id="grid01Cnt" style="font-weight:bold">0</span></td>
				</tr>
			</table>
			<table border="0" cellpadding="0" cellspacing="0" width="600"><tr><td style="background-color:#3366CC;height:2px"></td></tr></table>
			<div class="tblContainer" id="gridLayer01" style="width:600px; height:600px; overflow-y:scroll">
			<form name="frmGrid01">
			<table border="0" id="Grid01" width="583" cellpadding="0" cellspacing="0">
				<thead>
				<tr bgcolor="#EEECE7" height="25" align="center">
					<td width="90" class="lTD_0rbl gridTitle">No.</td>
					<td width="140" class="lTD_0rb0 gridTitle">회사명</td>
					<td width="140" class="lTD_0rb0 gridTitle">프로젝트</td>
					<td width="83" class="lTD_0rb0 gridTitle">금액</td>
					<td width="80" class="lTD_0rb0 gridTitle">일자</td>
					<td width="50" class="lTD_0rb0 gridTitle">유효</td>
				</tr>
				<tr id="tr01Result" bgcolor="#FFFFFF" height="25" align="center">
					<td colspan="7" style="color:#948D88; BORDER-TOP: #abccf8 0px solid;" class="lTD_0rbl"><span id="loadSpan1" style="color:#CE7302">검색된 자료가 없습니다.</span></td>
				</tr>
				</thead>
				<tbody></tbody>
			</table>
			</form>
			</div>
			<table border="0" width="600" cellpadding="0" cellspacing="0">
				<tr>
					<td align="left" colspan="6" bgcolor="FFFFFF" style="BORDER-BOTTOM: #abccf8 1px solid;BORDER-LEFT: #abccf8 1px solid;BORDER-TOP: #abccf8 1px solid;BORDER-RIGHT: #abccf8 1px solid;padding-top:0px">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<tr align="center" height="30">
								<td style="background-image:url(/inc/layout/panel-title-light-bg.gif)"><span id="pageDiv01"></span></td>
							</tr>									
						</table>
					</td>
				</tr>
			</table>
		</td>
		<td valign="top" style="text-align:center; padding-left:5px">					
			<table border="0" cellpadding="0" cellspacing="0" width="620">
				<form name="frmOrder">
				<tr>
				  <td width="100%" class="lTD_trbl" style="padding: 5px 5px 5px 5px; text-align:center">
					<table border="0" cellpadding="0" cellspacing="0" width="610">
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;No. : &nbsp;<input type="text" name="estCd" id="estCd" size="15" readonly="readonly"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
								거 &nbsp; 래 &nbsp; 처 &nbsp;:  <input type="text" name="company" id="company" size="25" class="inputBox" style="margin-left:4px">
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								담 &nbsp; 당 &nbsp; 자 &nbsp;: &nbsp;<input type="text" name="major" id="major" size="15" class="specialBox"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
								연 &nbsp; 락 &nbsp; 처 &nbsp;: &nbsp;<input type="text" name="majorPhone" id="majorPhone" size="20" class="inputBox"> &nbsp; &nbsp; &nbsp;
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								&nbsp; &nbsp; &nbsp; &nbsp;E-mail : &nbsp;<input type="text" name="majorEmail" id="majorEmail" size="20" class="inputBox" style="margin-right:3px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
								프 로 젝 트 : &nbsp;<input type="text" name="projectNm" id="projectNm" size="25" class="inputBox"> &nbsp; &nbsp; &nbsp;
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								공 &nbsp; 급 &nbsp; 가 &nbsp;: &nbsp;<input type="text" name="totalAmount" id="totalAmount" size="15" class="inputBox" onBlur="fnGetTax('totalAmount', 'totalTax')" style="text-align:right;padding-right:2px" onKeyup="commify2(this)"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
								부 &nbsp; 가 &nbsp; 세 &nbsp;: &nbsp;<input type="text" name="totalTax" id="totalTax" size="15" class="inputBox" style="text-align:right;padding-right:2px" onKeyup="commify2(this)"> &nbsp; &nbsp; &nbsp;
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 7px 0 7px 30px; text-align:left; font-weight:bold">
								<textarea id="remark" style="width:550px;height:80px;"></textarea>
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								<select name="flag" id="flag">
									<option value="Y">유효</option>
									<option value="N">무효</option>
								</select> &nbsp; &nbsp;<input type="text" id="accessInfo" style="font-weight:normal;width:220px; border:0px">
								<span>
								<input type="button" id="btnMail" value="메일 발송" class="inputBtn" onClick="fnSendMail()" style="margin-right:10px"> 
								<input type="button" value="출력" class="inputBtn" onClick="fnPrint()"> 
								<input type="button" value="저장" class="inputBtn" onClick="fnSave()"> 
								<input type="button" value="신규" class="inputBtn" onClick="fnReset()">
								</span>
							</td>
						</tr>
					</table>
				  </td>
				</tr>
				</form>
			</table>			
			<table border="0" cellpadding="0" cellspacing="0" width="620" style="margin-top:5px">
				<form name="frmOrderArticle">
				<input type="hidden" name="seq" id="seq">
				<tr>
				  <td width="100%" class="lTD_trbl" style="padding: 5px 5px 5px 5px; text-align:center">
					<table border="0" cellpadding="0" cellspacing="0" width="610">
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								품 &nbsp; 목 &nbsp; 명 &nbsp;: &nbsp;<input type="text" name="prdNm" id="prdNm" size="15" class="specialBox" style="margin-right:130px">
								단 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;위 : &nbsp;<input type="text" name="unit" id="unit" size="10" class="inputBox" maxlength="5"> &nbsp; &nbsp; &nbsp;
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								수 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;량 : &nbsp;<input type="text" name="amount" id="amount" size="10" class="inputBox" style="text-align:right;padding-right:2px;margin-right:160px" onKeyup="commify2(this)"> 
								단 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;가 : &nbsp;<input type="text" name="unitPrice" id="unitPrice" size="12" class="inputBox" onblur='fnGetEstTotal()' style="text-align:right;padding-right:2px" onKeyup="commify2(this)"> &nbsp; &nbsp; &nbsp;
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								공 &nbsp; 급 &nbsp; 가 &nbsp;: &nbsp;<input type="text" name="articlePrice" id="articlePrice" size="15" class="inputBox" onBlur="fnGetTax('articlePrice', 'articleTax')" style="text-align:right;padding-right:2px;margin-right:130px" onKeyup="commify2(this)" onBlur="fnGetOrderTotal()"> 
								부 &nbsp; 가 &nbsp; 세 &nbsp;: &nbsp;<input type="text" name="articleTax" id="articleTax" size="15" class="inputBox" style="text-align:right;padding-right:2px" onKeyup="commify2(this)"> &nbsp; &nbsp;								
							</td>
						</tr>
						<tr>
							<td height="30" width="610" class="lTD_00b0" style="padding: 0 0 0 30px; text-align:left; font-weight:bold">
								<select name="articleFlag" id="articleFlag">
									<option value="Y">유효</option>
									<option value="N">무효</option>
								</select> &nbsp; &nbsp;<input type="text" id="articleAccInfo" style="font-weight:normal;width:380px; border:0px">
								<span>
								<input type="button" value="저장" class="inputBtn" onClick="fnSaveArticle()"> 
								<input type="button" value="신규" class="inputBtn" onClick="fnResetArticle()">
								</span>
							</td>
						</tr>
					</table>
					<table border="0" cellpadding="0" cellspacing="0" width="600" style="margin-top:10px">
						<tr height="24">
							<td style="padding: 0 0 0 0;text-align:left" width="300"><div><input type="text" class="subTitle" style="width:80px;" value="품목" ReadOnly>&nbsp;<a href="javascript:grid02List()">[새로고침]</a> &nbsp;</div> </td>
							<td style="padding: 0 20 0 0;" align="right" width="300"><B>Total :</B> <span id="grid02Cnt" style="font-weight:bold">0</span></td>
						</tr>
					</table>
					<table border="0" cellpadding="0" cellspacing="0" width="600"><tr><td style="background-color:#3366CC;height:2px"></td></tr></table>
					<div class="tblContainer" id="gridLayer02" style="width:600px; height:190px; overflow-y:scroll">
					<form name="frmGrid02">
					<table border="0" id="Grid02" width="583" cellpadding="0" cellspacing="0">
						<thead>
						<tr bgcolor="#EEECE7" height="25" align="center">
							<td width="40" class="lTD_0rbl gridTitle">No.</td>
							<td width="160" class="lTD_0rb0 gridTitle">품목명</td>
							<td width="50" class="lTD_0rb0 gridTitle">단위</td>
							<td width="70" class="lTD_0rb0 gridTitle">수량</td>
							<td width="90" class="lTD_0rb0 gridTitle">단가</td>
							<td width="113" class="lTD_0rb0 gridTitle">공급가</td>
							<td width="50" class="lTD_0rb0 gridTitle">유효</td>
						</tr>
						<tr id="tr02Result" bgcolor="#FFFFFF" height="25" align="center">
							<td colspan="7" style="color:#948D88; BORDER-TOP: #abccf8 0px solid;" class="lTD_0rbl"><span id="loadSpan2" style="color:#CE7302">검색된 자료가 없습니다.</span></td>
						</tr>
						</thead>
						<tbody></tbody>
					</table>
					</form>
					</div>
					<table border="0" width="600" cellpadding="0" cellspacing="0">
						<tr>
							<td align="left" colspan="6" bgcolor="FFFFFF" style="BORDER-BOTTOM: #abccf8 1px solid;BORDER-LEFT: #abccf8 1px solid;BORDER-TOP: #abccf8 1px solid;BORDER-RIGHT: #abccf8 1px solid;padding-top:0px">
								<table width="100%" border="0" cellpadding="0" cellspacing="0">
									<tr align="center" height="25">
										<td style="background-image:url(/inc/layout/panel-title-light-bg.gif)"><span id="pageDiv02"></span></td>
									</tr>									
								</table>
							</td>
						</tr>
					</table>
				  </td>
				</tr>
				</form>
			</table>
		</td>		
	</tr>
</table>
</div>
<!-- 그리그 끝 -->

<script language="javascript">
	setMainMenu();
	fnCommonInit();
</script>
</BODY>
</HTML>